Skip to content

[SMB] Add the recent_files module#450

Merged
NeffIsBack merged 3 commits intoPennyw0rth:mainfrom
Dfte:SMB]-ADd-the-recent_files-module
Apr 1, 2025
Merged

[SMB] Add the recent_files module#450
NeffIsBack merged 3 commits intoPennyw0rth:mainfrom
Dfte:SMB]-ADd-the-recent_files-module

Conversation

@Dfte
Copy link
Contributor

@Dfte Dfte commented Oct 12, 2024

On Windows, LNK files poiting to recently modified files are stored in the AppData\Roaming\Microsoft\Windows\Recent directory. This module retrieves these LNK's and parse them in order to extract source files which can be useful during internal assessments to retrieve recently modified and potentially juicy files:

image

Note: source files are not downloaded because accessing them without knowing their content is something I consider dangerous AND/OR could end up having the EDR being triggered (let's say someone tried to open SAM/SECURITY for exemple. So I don't intend on adding this feature.

Signed-off-by: Deft_ <aurelien.chalot@protonmail.com>
NeffIsBack
NeffIsBack previously approved these changes Apr 1, 2025
Copy link
Member

@NeffIsBack NeffIsBack left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM:
image

The weird print statements should be fixed when strayge/pylnk#35 is merged :D, see #627

@Dfte Dfte dismissed NeffIsBack’s stale review April 1, 2025 23:22

The merge-base changed after approval.

@NeffIsBack
Copy link
Member

@Dfte thanks again for the work!

NeffIsBack
NeffIsBack previously approved these changes Apr 1, 2025
@Dfte Dfte dismissed NeffIsBack’s stale review April 1, 2025 23:28

The merge-base changed after approval.

@NeffIsBack
Copy link
Member

Closing&Reopening the PR to hopefully solve the github fckery: https://github.com/orgs/community/discussions/58535#discussioncomment-6233887

@NeffIsBack NeffIsBack closed this Apr 1, 2025
@NeffIsBack NeffIsBack reopened this Apr 1, 2025
NeffIsBack
NeffIsBack previously approved these changes Apr 1, 2025
@NeffIsBack NeffIsBack merged commit 6fcfb8d into Pennyw0rth:main Apr 1, 2025
4 checks passed
@Dfte Dfte deleted the SMB]-ADd-the-recent_files-module branch July 4, 2025 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants